/*
 * circle.cpp
 *
 *  Created on: May 9, 2011
 *      Author: root
 */

#include <cmath>
#include <iostream>
using namespace std;

#include "circle.h"

void circle::create(float r0, point p0){
	rho=r0;
	p.create(p0.getX(),p0.getY());
}
float circle::getsurface() {
	float surf=0.0;
	surf=M_PI*rho*rho;
	return surf;
}
point circle::getcenter(){
	point center;
	center.create(p.getX(),p.getY());
	return center;
}
float circle::getradius(){
	float radius=0.0;
	radius=rho;
	return radius;
}
